home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9310.ZIP
/
DFPP03.ZIP
/
CLOCK.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-11
|
429b
|
22 lines
// ------- clock.cpp
#include "desktop.h"
#include "applicat.h"
Clock::Clock()
{
clocktimer.SetTimer(0);
}
void Clock::DispatchEvent()
{
if (clocktimer.TimedOut()) {
// -------- reset the timer
clocktimer.SetTimer(19); // approx. 19 tics/second
// -------- post the clock event
if (desktop.ApplWnd() != 0)
desktop.ApplWnd()->ClockTick();
}
}